import { Injectable } from '@angular/core'
import { BGPIC } from './bg-pic'

@Injectable()
export class GetBgPicService {
    getPictures(name:string,a?:number,b?:number): any {
        if(a==undefined && b==undefined){
            return BGPIC[name];
        }else if(a>=0 && b==undefined){
            return BGPIC[name][a];
        }else if(a>=0 && b>=0){
            return BGPIC[name][a][b];
        }
    }
}
